

.depot_form
  = form_for @product do |f|
    - if @product.errors.any?
      #error_explanation
        %h2= "#{pluralize(@product.errors.count, "error")} prohibited this user from being saved:"
        %ul
          - @product.errors.full_messages.each do |msg|
            %li= msg

    %fieldset
      %legend= "Enter Product Details"

      .field
        = f.label :title, 'Title:'
        = f.text_field :title, size: 40
      .field
        = f.label :description, 'description:'
        = f.text_area :description, row: 6
      .field
        = f.label :image_url, 'image_url:'
        = f.text_field :image_url, size: 40
      .field
        = f.label :price, 'price:'
        = f.text_field :price, size: 40
      .field
        = f.label :locale, 'locale:'
        = f.select :locale, LANGUAGES
      .actions
        = f.submit 'Save'




